package GameElements;

import java.awt.Color;

import javax.swing.ImageIcon;

import Player.Player;

public abstract class Pawn 
{
	public static final int SANS_ROLE=Tile.nothing, CHEVALIER=Tile.castle, VOLEUR=Tile.street, PAYSAN=Tile.farm, MOINE=Tile.cloister; 
	protected ImageIcon img;
	protected Player possessor;
	protected int role = SANS_ROLE;
	protected int poid;
	protected Color couleur;
	
	public Pawn(String imgName, Color c)
	{
		img = new ImageIcon(imgName);
		this.couleur = c;
	}
	
	public ImageIcon getImg()
	{
		return img;
	}
	public Player getJoueur()
	{
		return possessor;
	}
	public int getRole()
	{
		return role;
	}
	public Color getColor()
	{
		return couleur;
	}	
	
	public void setPossessor(Player p)
	{
		possessor = p;
	}
	public void setRole(int role)
	{
		this.role = role;
	}
	public int getPoid()
	{
		return poid;
	}
}
